﻿#pragma once
// 函数的父类，便于作为参数传递
class Function
{
public:
    virtual double operator()(const double x) const;
    virtual double diff(const double x) const;
    virtual double diff2(const double x) const;
};